<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="master.html" />

<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title>View Party</title>
</head>

<body>
${tmpl_context.rating()}
<div class="grid_12">
    ${sidebar_left()}
    <div class="grid_9 omega">
        <div class="grid_9"><a href="${tg.url('/party/clone/')}${party.party_id}">Clone</a></div>
        <div class="grid_9">
            ${tmpl_context.edit_party_form(value=dict(party_name=party.name,party_nick=party.nick,parent_autocomplete=parent_name,party_id=party.party_id),child_args={'risk': {'options': risk_options}})}
        </div>
        <div class="grid_9">${party.name} is party to <a href="${tg.url('/record/list?pty=')}${party.party_id}">${len(party.records)}</a> records</div>
        <div class="grid_9">Risk is average of ${len(party.risks)} ratings</div>
    </div>  
</div>
</body>
</html>
